//microcommand define helpv
signature("<...commands>", { strictOptions: true })
option("image", "-i")
action(async ({ session, options }, ...args) => {
if (!args.length) return session.execute({ name: "help", args: [name.split("/").at(-1)] }, true)
const results = []
for (const c of new Set(args.map(n => ctx.$commander.get(n) || n))) results.push(typeof c === "string" ? session.text(".not-found", [c]) : await session.execute({ name: "help", args: [c.name.replaceAll(" ", ".")] }, true))
if (options.image) return session.execute({ name: "imagify", args: [[h.text(results.join("\n\n"))]] }, true)
return h("message", { forward: true }, results.map(r => h("message", r)))
})
locale("zh-CN", { description: "显示多个指令的帮助", arguments: { commands: "指令" }, options: { image: "使用图片形式发送" }, messages: { "not-found": "指令 {0} 不存在…" }})